function MyInput(props) {
    const handleChange = (event) => {
        const value = event.target.value;
        // toUpperCase() 是用于将字符串转换为大写
        console.log(value.toUpperCase());
    }
    return <input type="text" onChange={handleChange} />
}
export default MyInput;